//
//  APDiscoveryDataManager.h
//  AqualPolo
//
//  Created by dong on 2024/5/4.
//

#import "BaseDataManager.h"
#import "APWorksModel.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^APDiscoveryDataBlock)(void);
@interface APDiscoveryDataManager : BaseDataManager
+ (APDiscoveryDataManager *)shareInstance;
@property (nonatomic, strong) NSMutableArray *dataArray;


- (void)addWorksData:(APWorksModel *)worksModel;
- (void)loadData:(APDiscoveryDataBlock)callBack;
- (void)updateWorks:(NSString *)worksId;
- (void)deleteWorks:(APWorksModel *)model;
- (void)blockUserWorks:(NSString *)userId;
- (void)unBlockUserWorks:(NSString *)userId;
- (void)clearData;

- (NSArray <APCommentModel *>*)loadCommentsByWorksId:(NSString *)worksId;
- (void)saveCommentsWorksId:(NSString *)worksId comments:(NSArray <APCommentModel *>*)comments;

@end

NS_ASSUME_NONNULL_END
